const tenpay = require('tenpay');
const config = {
    appid: process.env.WECHAT_APPID,
    mchid:  process.env.WECHAT_MCH_ID,
    partnerKey: process.env.WECHAT_MCH_KEY,
    notify_url: process.env.WECHAT_NOTIFY_URL
}


// 调用微信JSSDK支付参数
const wechatSdk = new tenpay(config, true)

module.exports = wechatSdk